package com.health.viewscontrols.focusgroup;

import com.health.viewscontrols.NovaFragmentActivity;
import com.health.R;
import com.health.viewscontrols.tijian.YBQK_ZiLiWenJuanActivity;
import com.health.viewscontrols.tijian.ZYTZ_WenJuanActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

/**
 * 重点人群--老年人
 * 
 * @author nova
 *
 */
public class OlderActivity extends NovaFragmentActivity implements OnClickListener {
	private TextView title;
	private Button btn_back;
	public static Button btn_up;
	/** 健康评估 */
	private TextView btn_jkpg;
	/** 中医保健 */
	private TextView btn_zybj;
	/**中医体质快速识别*/
	private TextView btn_kssb;
	public static Activity mOlderActivity = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_older_main);
		initView();
		addListener();
	}

	private void initView() {
		title = (TextView) findViewById(R.id.title);
		title.setText("重点人群--老年人");

		mOlderActivity = this;
		btn_back = (Button) findViewById(R.id.btn_back);
		btn_up = (Button) findViewById(R.id.btn_up);
		btn_up.setVisibility(View.GONE);
		btn_jkpg = (TextView) findViewById(R.id.btn_jkpg);
		btn_zybj = (TextView) findViewById(R.id.btn_zybj);
		btn_kssb=findViewById(R.id.btn_kssb);
	}

	private void addListener() {
		btn_back.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		btn_up.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {

			}
		});
		btn_jkpg.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(OlderActivity.this, YBQK_ZiLiWenJuanActivity.class);
				startActivity(intent);
			}
		});
		btn_zybj.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(OlderActivity.this, ZYTZ_WenJuanActivity.class);
				startActivity(intent);
			}
		});
		btn_kssb.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(OlderActivity.this, KuaiSuShiBieActivity.class);
				startActivity(intent);
			}
		});
	}

	@Override
	public void onClick(View v) {

		int id = v.getId();
		if (id == R.id.btn_back) {
			this.finish();
		} else if (id == R.id.btn_up) {
		} else {
		}

	}

}
